# 【练习3.3】假设有9个球，分别是1~9的序号，把它们随机放到红黄蓝三个袋子中，请打印一次结果。
# tips:daizi=[ [ ],[ ],[ ] ]
import random

daizi = [[1], [1], [1]]

temp = []

while len(temp) < 3:
    rad = random.randint(1, 9)
    if rad not in temp:
        temp.append(rad)
    else:
        continue

for i in range(0, 3):
    daizi[i] = [temp[i]]

print(daizi)
